package com.hgw.Demo02_adapterPattern.Exercises9_9_8ObjectAdapter;

/**
 * Data time:2021/12/14 14:04
 * StudentID:2019112118
 * Author:hgw
 * Description:
 */
public class AdapterDO implements DatabaseOperation {
    private ThirdPartyImpl thirdParty;

    public AdapterDO(ThirdPartyImpl thirdParty) {
        this.thirdParty = thirdParty;
    }

    @Override
    public void passwordEncryption() {
        thirdParty.encryptionEma();
    }

    @Override
    public void emailEncryption() {
        thirdParty.encryptionEma();
    }
}
